package com.kehutong.contact.enums;

import org.coraframework.util.HashID;

/**
 * 跟进方式
 *
 * @Author: liu jin Hwang
 */
public enum FollowUpWay implements HashID {

    VISIT("1", "到访"),
    TELEPHONE("2", "电话"),
    WECHAT("3", "微信"),
    SHORT_MESSAGE("4", "短信"),
    EMAIL("5", "邮件"),
    QQ("6", "QQ"),
    OTHERS("7", "其他");

    private final String id;
    private final String desc;

    private FollowUpWay(String id, String desc) {
    	this.id = id;
        this.desc = desc;
    }

    public static FollowUpWay get(String desc) {
        FollowUpWay[] followUpWays = values();
        for (FollowUpWay followUpWay : followUpWays) {
            if (followUpWay.getDesc().equals(desc)) {
                return followUpWay;
            }
        }
        return null;
    }

    @Override
    public String getId() {
        return id;
    }
    

	@Override
    public String getDesc() {
        return desc;
    }
    
}
